<?php

return [
    [
        'name' => 'ini',
        'title' => '客户端配置',
        'type' => 'array',
        'value' => [
            'name' => '',
            'logo' => '',
			'guide_logo' => '',
            'copyright' => '',
			'appid' => '__UNI__APPID',
			'urlschemes' => '',
            'package_name' => 'com.example.www',
            'cdnurl' => 'https://www.example.com',
            'appurl' => 'https://www.example.com/api',
            'socketurl' => 'wss://im.example.com',
            'debug' => 'N',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '客户端参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'sdk_amap',
        'title' => '高德地图SDK配置',
        'type' => 'array',
        'value' => [
            'amapkey_web' => '',
            'amapkey_ios' => '',
            'amapkey_android' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '高德地图SDK参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'sdk_qq',
        'title' => '腾讯开放SDK配置',
        'type' => 'array',
        'value' => [
            'qq_appid' => '',
            'gz_appid' => '',
            'gz_secret' => '',
            'gz_token' => '',
            'gz_aeskey' => '',
            'gz_debug' => '0',
            'gz_loglevel' => 'debug',
            'gz_callback' => '/wanlshop/user/third',
			'gz_notify_url' => '/wanlshop/callback/notify/type/jssdk',
            'wx_appid' => '',
            'wx_appsecret' => '',
            'wx_universal_links' => 'https://example.com/',
            'mch_id' => '',
            'key' => '',
            'notify_url' => '/wanlshop/callback/notify/type/wechat',
			'cert_client' => '/addons/wanlshop/certs/apiclient_cert.pem',
			'cert_key' => '/addons/wanlshop/certs/apiclient_key.pem',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '腾讯开放SDK参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'sdk_alipay',
        'title' => '支付宝SDK配置',
        'type' => 'array',
        'value' => [
            'app_id' => '',
            'notify_url' => '/wanlshop/callback/notify/type/alipay',
            'return_url' => '/wanlshop/callback/return/type/alipay',
			'private_key' => '',
			'ali_public_key' => '/addons/wanlshop/certs/alipayCertPublicKey.crt',
			'app_cert_public_key' => '/addons/wanlshop/certs/appCertPublicKey.crt',
			'alipay_root_cert' => '/addons/wanlshop/certs/alipayRootCert.crt',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '支付宝SDK参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'sdk_weibo',
        'title' => '微博开放SDK配置',
        'type' => 'array',
        'value' => [
            'appkey' => '',
            'appsecret' => '',
            'redirect_uri' => '/wanlshop/callback/weibo',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '微博开放SDK参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'kuaidi',
        'title' => '快递100 SDK',
        'type' => 'array',
        'value' => [
            'secretKey' => '',
            'callbackUrl' => '/wanlshop/callback/kuaidi',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '快递100 SDK参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'h5',
        'title' => 'H5客户端',
        'type' => 'array',
        'value' => [
            'domain' => 'https://m.example.com',
            'title' => '',
            'router_mode' => 'hash',
            'router_base' => './',
            'https' => 'N',
            'qqmap_key' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => 'H5客户端配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'mp_weixin',
        'title' => '微信小程序',
        'type' => 'array',
        'value' => [
            'appid' => '',
            'appsecret' => '',
            'scope_userLocation' => '演示定位能力',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '微信小程序配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'mp_alipay',
        'title' => '支付宝小程序',
        'type' => 'array',
        'value' => [
            'appid' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '支付宝小程序配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'mp_baidu',
        'title' => '百度小程序',
        'type' => 'array',
        'value' => [
            'appid' => '',
            'appsecret' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '百度小程序配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'mp_toutiao',
        'title' => '头条小程序',
        'type' => 'array',
        'value' => [
            'appid' => '',
            'appsecret' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '头条小程序配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'mp_qq',
        'title' => 'QQ小程序',
        'type' => 'array',
        'value' => [
            'appid' => '',
            'appsecret' => '',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => 'QQ小程序配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'style',
        'title' => '样式配置',
        'type' => 'array',
        'value' => [
			'category_style' => '4',
            'find_nav_color' => '#ff4632',
            'find_font_color' => 'light',
            'cart_nav_image' => '',
            'cart_nav_color' => '',
            'cart_font_color' => '',
            'groups_nav_image' => '/assets/addons/wanlshop/img/show/grueps-top-bg3x.png',
            'groups_nav_color' => '#fed295',
            'groups_font_color' => 'dark',
            'user_nav_color' => '#ffeccc',
            'user_nav_image' => '/assets/addons/wanlshop/img/user/top_bg.png',
            'user_bg_color' => '#ffeccc',
            'user_bg_image' => '/assets/addons/wanlshop/img/user/user_bg.png',
            'user_font_color' => 'dark',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => 'App样式配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'config',
        'title' => '动态客户端配置',
        'type' => 'array',
        'value' => [
            'store_audit' => 'Y',
			'refund_switch' => 'N',
            'comment_switch' => 'Y',
			'service_logo' => '/assets/addons/wanlshop/img/common/mine_def_touxiang_3x.png',
            'tel_phone' => '0775-12345678',
            'working_hours' => '09:00~22:00',
            'shop_document' => '',
            'shop_qun' => '',
            'user_agreement' => '153',
            'privacy_protection' => '154',
            'help_category' => '1',
            'new_category' => '2',
            'sys_category' => '4',
			'poster_width' => '680',
			'poster_background' => '#ffffff',
			'poster_image' => '/assets/addons/wanlshop/img/page/article-default.png',
			'poster_qrcode' => '2',
			'poster_env' => 'release',
			'poster_title' => '我发现了一个很好的商城',
			'poster_title_color' => '#000000',
			'poster_details' => '默认分享描述详情',
			'poster_price_color' => '#fe6600',
			'poster_user' => '新零售商城',
			'poster_viewDetails' => '长按或扫描识别二维码',
			'poster_original_color' => '#828282',
			'auth_reply' => '欢迎使用在线客服',
			'not_online' => '[汗] 非工作时间8:00-22:00 或客服繁忙！请稍后再试~',
			'service_initial' => '您好 [微笑] 请用一句话简短描述问题~',
			'mp_weixin_id' => '',
			'versionCode' => '119'
        ],
        'rule' => '',
        'msg' => '',
        'tip' => 'App参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'order',
        'title' => '订单配置',
        'type' => 'array',
        'value' => [
            'cancel' => '3',
            'receiving' => '7',
            'comment' => '7',
            'customer' => '7',
            'autoagree' => '3',
            'returntime' => '7',
            'receivingtime' => '7',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '订单参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'find',
        'title' => '发现页配置',
        'type' => 'array',
        'value' => [
            'app_switch' => [
                'new' => 'new',
                'live' => 'live',
                'video' => 'video',
                'want' => 'want',
                'show' => 'show',
            ],
            'mp_switch' => [
                'new' => 'new',
                'live' => 'live',
                'video' => 'video',
                'want' => 'want',
                'show' => 'show',
            ],
            'h5_switch' => [
                'new' => 'new',
                'live' => 'live',
                'video' => 'video',
                'want' => 'want',
                'show' => 'show',
            ],
            'wechat_switch' => [
                'new' => 'new',
                'live' => 'live',
                'video' => 'video',
                'want' => 'want',
                'show' => 'show',
            ],
            'personalExamine_switch' => 'Y',
            'allExamine_switch' => 'Y',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '订单参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'live',
        'title' => '直播配置',
        'type' => 'array',
        'value' => [
			'sslSwitch' => 'Y',
			'transTemplateSwitch' => 'Y',
			'authSwitch' => 'Y',
            'liveDomain' => 'live.example.com',
			'liveKey' => '',
			'liveCnd' => 'play.example.com',
            'pushDomain' => 'rtmp.example.com',
			'pushKey' => '',
            'builderTime' => '60',
            'appName' => 'appname',
            'transTemplate' => 'ld'
			
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '订单参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'video',
        'title' => '视频配置',
        'type' => 'array',
        'value' => [
            'accessKeyId' => '',
            'accessKeySecret' => '',
            'workflowId' => '',
            'privateKey' => '',
			'regionId' => 'cn-shanghai'
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '视频参数配置',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'withdraw',
        'title' => '提现配置',
        'type' => 'array',
        'value' => [
            'state' => 'Y',
            'minmoney' => 100,
            'monthlimit' => 0,
            'servicefee' => 6,
        ],
        'rule' => '',
        'msg' => '',
        'tip' => '商城提现参数配置',
        'ok' => '',
        'extend' => '',
    ],
	[
        'name' => 'redis',
        'title' => 'Redis配置',
        'type' => 'array',
        'value' => [
            'host' => '127.0.0.1',
            'port' => '6379',
            'password' => '',
            'select' => '0',
            'timeout' => '0',
            'persistent' => 'Y',
        ],
        'rule' => '',
        'msg' => '',
        'tip' => 'Redis参数配置',
        'ok' => '',
        'extend' => '',
    ],
	[
	    'name' => 'captcha',
	    'title' => '人机验证配置',
	    'type' => 'array',
	    'value' => [
			'captcha_switch' => 'Y',
			'captchaService' => 'php',
			'nodePath' => 'node', // NodeJs路径
			'seKey' => 'WSnDlShWoFp', //密码盐
			'captchaUseMaxNum' => 3, //验证码效验完，允许使用的最大次数
			'captchaUseMaxTime' => 3600, //验证码效验完，有效期(秒)
			'canvasSize'    => 480,   //默认正方形验证码像素大小
			'checkTimeOut'  => 600,   //验证码有效期
			'dragInterval'  => 200,   //鼠标轨迹间隔时间(ms)
			'dragTimeMin'   => 500,    //拖拽至少用时(ms)
			'dragTimeMax'   => 10000,  //拖拽最多用时(ms)
			'errorAccuracy' => 10,     //左右误差度数允许值
			'oneCapErrNum'  => 3,     //每个验证码最多错误几次失效
			'ipDayAll'      => 300,   //单IP一天允许生成多少次验证码 
			'ipDayError'    => 100,   //单IP一天允许验证失败次数
			'ipHourAll'     => 100,   //单IP一小时内允许生成多少张验证码 
			'ipHourError'   => 30,    //单IP一小时内允许出错多少次 
			'randomPoint'   => 200,   //初始 随机干扰点数量 
			'randomLine'    => 50,    //初始 随机干扰线数量 
			'randomBlock'  => 3     //初始 随机干扰矩块数量 
	    ],
	    'rule' => '',
	    'msg' => '',
	    'tip' => '人机验证参数配置',
	    'ok' => '',
	    'extend' => '',
	],
    [
        'name' => '__tips__',
        'title' => '温馨提示',
        'type' => 'string',
        'content' => [],
        'value' => '不需要此处配置任何参数，请在 [多用户商城] - [客户端管理]和[系统管理] 中管理配置',
        'rule' => '',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
];
